<?php

use think\facade\Route;

Route::post('/signIn', 'adminUsers/signIn')
    ->validate(\app\validate\AdminUserSignIn::class);

Route::post('/addTopMenu', 'adminMenu/addTopMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AddTopMenu::class);

Route::post('/deleteMenu', 'adminMenu/deleteMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/updateUserInfo', 'adminUsers/updateUserInfo')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/editMenuData', 'adminMenu/editMenuData')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\EditMenu::class);

Route::post('/addSonMenu', 'adminMenu/addSonMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AddSonMenu::class);

Route::post('/searchOperatingLog', 'systemOperatingLog/search')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\SearchLog::class);

Route::post('/searchAdminUserLoginLog', 'adminLoginLog/search')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\SearchLog::class);

Route::post('/deleteAdminRole', 'adminRole/deleteAdminRole')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/deleteAdminUser', 'adminUsers/deleteAdminUser')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/disableAdminRole', 'adminRole/disable')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/unDisableAdminRole', 'adminRole/unDisable')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/disableAdminUser', 'adminUsers/disable')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/unDisableAdminUser', 'adminUsers/unDisable')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);

Route::post('/addAdminUser', 'adminUsers/addAdminUser')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AdminUser::class);

Route::post('/editAdminUser', 'adminUsers/editAdminUser')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AdminUser::class);

Route::post('/addAdminRole', 'adminRole/addAdminRole')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AdminRole::class);

Route::post('/editAdminRole', 'adminRole/editAdminRole')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->validate(\app\validate\AdminRole::class);